package com.googlecode.java_cl_parser;

import org.junit.Test;

@CLIEntry(
		description = "",
		version = "1.0"
)
public class DuplciatedOptions
{
	@CLIOption(
			name = "tc"
	)
	public void setThreadCount(int count)
	{
	}

	@CLIOption(
			name = "tc"
	)
	public void setThreadCountDup(int count)
	{
	}

	@Test(expected = InvalidCLIEntryException.class)
	public void duplicatedName() throws Exception
	{
		DuplciatedOptions cliLaunchable = new DuplciatedOptions();
		CommonsCLILauncher.mainWithInstance(cliLaunchable, new String[]{});
	}
}